<?php

/**
 * @author PeoneEr
 */
require_once "core/db.php";

class Mlogon1 extends DB {

    private $_query;

    protected function getInfoForLogin($login, $password) {
        /**
         *  получаем информацию для логина
         * @param string $login
         * @param mixed $password
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "
                SELECT `id` ,`name`, `password` , `access_level`, `question`, `answer`, 
                `email`, `money`, `secret` 
        FROM `account_data` WHERE `name` = '$login' 
        AND `password` = '$password' ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
